package com.atguigu.order.service.client;

import com.atguigu.utils.vo.UcenterMemberOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "service-ucenter")
public interface UCenterClient {

    //根据用户id用户信息
    @GetMapping("/ucenter/member/getMemberInfo/{memberId}")
    public UcenterMemberOrder getMemberInfo(@PathVariable("memberId")String memberId);
}
